	//不合格人员
	function queryUnqualified(num,val){
		var homeworkId=$(val).siblings("#homeworkId").val();
		var className=$(val).siblings("#className").val();
		var pageNo=num;
		$.ajax({
			url:"teacher/queryUnqualified.do",
			type:"POST",
			dataType:"JSON",
			data:{
				pageNo:pageNo,
				homeworkId:homeworkId,
				className:className
			},
			success:function(obj){
				$.each(obj,function(i){
					if(i=='home'){
						$(".b").remove();
						$.each(obj[i],function(j){
							var s="<tr class='tr-style b'>";
							s+="<td>"+obj[i][j].className+"</td>";
							s+="<td>"+obj[i][j].stuName+"</td>";
							s+="<td>"+obj[i][j].homeworkContent+"</td>";
							s+="<td>"+obj[i][j].workLevel+"</td>";
							s+="<td>";
								if(obj[i][j].workState==1){
									s+="已提交";
								}else{
									s+="未提交";
								}
							s+="</td>";
							s+="</tr>";
							$("#tb").append(s);
						});
					}
				});
				$("#pageNo").val(obj.pageNo);
				$(".cc").empty();
				if(obj.pages>1){
					var s="";
					if(obj.pageNo>1){
						s+="<a onclick='queryUnqualified("+(pageNo-1)+",this)'>上一页&nbsp;&nbsp;</a>";
					}
					for(var n=0;n<obj.pages;n++){
						if(obj.pageNo==(n+1)){
							s+="<span style='font-size:16px;color:#446ee6;'>&nbsp;"+(n+1)+"&nbsp;</span>";
						}
						if(obj.pageNo!=(n+1)){
							s+="<a onclick='queryUnqualified("+(n+1)+",this)'>&nbsp;"+(n+1)+"&nbsp;</a>";
						}
					}
					if(obj.pageNo<obj.pages){
						s+="<a onclick='queryUnqualified("+(pageNo+1)+",this)'>&nbsp;&nbsp;下一页</a>";
					}
					s+="<input type='hidden' id='homeworkId' value="+homeworkId+">";
					s+="<input type='hidden' id='className' value="+className+">";
					$(".cc").append(s);
				}
			},
			error:function(error){
		         $(".login-box-warning").text("error:"+error);
			}
		});
	}
	//未提交作业人员
	function queryUnsubmission(num,val){
		var homeworkId=$(val).siblings("#homeworkId").val();
		var className=$(val).siblings("#className").val();
		var pageNo=num;
		$.ajax({
			url:"teacher/queryUnsubmission.do",
			type:"POST",
			dataType:"JSON",
			data:{
				pageNo:pageNo,
				homeworkId:homeworkId,
				className:className
			},
			success:function(obj){
				$.each(obj,function(i){
					if(i=='home'){
						$(".a").remove();
						$.each(obj[i],function(j){
							var s="<tr class='tr-style a'>";
							s+="<td>";
								if(obj[i][j].stuClassName==null){
									s+=" ";
								}else{
									s+=obj[i][j].stuClassName;
								}
							s+="</td>";
							s+="<td>"+obj[i][j].stuName+"</td>";
							s+="<td>";
							if(obj[i][j].homeworkContent==null){
								s+=" ";
							}else{
								s+=obj[i][j].homeworkContent;
							}
							s+="</td>";
							s+="<td>";
								if(obj[i][j].workLevel==null){
									s+=" ";
								}else{
									s+=obj[i][j].workLevel;
								}
							s+="</td>";
							s+="<td>";
								if(obj[i][j].workState==1){
									s+="已提交";
								}else{
									s+="未提交";
								}
							s+="</td>";
							s+="</tr>";
							$("#ta").append(s);
						});
					}
				});
				$("#pageNo").val(obj.pageNo);
				$(".aa").empty();
				if(obj.pages>1){
					var s="";
					if(obj.pageNo>1){
						s+="<a onclick='queryUnsubmission("+(pageNo-1)+",this)'>上一页&nbsp;&nbsp;</a>";
					}
					for(var n=0;n<obj.pages;n++){
						if(obj.pageNo==(n+1)){
							s+="<span style='font-size:16px;color:#446ee6;'>&nbsp;"+(n+1)+"&nbsp;</span>";
						}
						if(obj.pageNo!=(n+1)){
							s+="<a onclick='queryUnsubmission("+(n+1)+",this)'>&nbsp;"+(n+1)+"&nbsp;</a>";
						}
					}
					if(obj.pageNo<obj.pages){
						s+="<a onclick='queryUnsubmission("+(pageNo+1)+",this)'>&nbsp;&nbsp;下一页</a>";
					}
					s+="<input type='hidden' id='homeworkId' value="+homeworkId+">";
					s+="<input type='hidden' id='className' value="+className+">";
					$(".aa").append(s);
				}
			},
			error:function(error){
				$(".login-box-warning").text("error:"+error);
			}
		});
	}
